<html xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:h="http://java.sun.com/jsf/html">
<h:head><title>Meu Teste CDI</title></h:head>

<h:body>

<h:form id="greetme">

	<p><h:outputLabel value="Digite seu nome: " for="name" />
		<h:inputText id="name" value="#{printer.name}" /> </p>
	<p><h:commandButton value="Say hello" action="#{printer.createSalutation}" /> </p>
	<p><h:outputText value="#{printer.salutation}" /></p>

</h:form>

</h:body>
      
</html>      
